package use_google;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.android.volley.toolbox.Volley;
import com.example.com.skills_utf8.R;

public class Home1Fra extends Fragment{

	protected com.android.volley.RequestQueue requestQueue;
	
	Activity activity ;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		
		View view = inflater.inflate(R.layout.fragment_home1, null);
		
		ImageView iv_pic = (ImageView) view.findViewById(R.id.iv_pic);
		
		
		activity = getActivity();
		init();
		game_main();
		
		return view;
	}
	
	
	void init(){ 
		requestQueue = Volley.newRequestQueue(activity);  
	}
	
	void game_main(){
		
		//requestQueue.add( new jsonOArequest<T>(url, Home1Fra.class, headers, listener, errorListener))
		
	}
	
	
	
	@Override
	public void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
		
		requestQueue.cancelAll(this);
	}
	
	
}
